package com.feib.stms.dao.jdbc.rowmapper;

import java.sql.ResultSet;


import org.springframework.jdbc.core.RowMapper;



import com.feib.stms.model.UploadFileActionLog;
import com.feib.stms.model.User;

public class UploadFileActionLogRowMapper extends BaseRowMapper<UploadFileActionLog> implements RowMapper<UploadFileActionLog>{

	
	private static final long serialVersionUID = 6854437544604432441L;

	public UploadFileActionLogRowMapper() {
		super(UploadFileActionLog.class);
		
	}

	@Override
	protected UploadFileActionLog doOtherMapRow(ResultSet rs, int rowNumber,UploadFileActionLog entity )
	{
		User user = new User();
		entity.setUser(user);
		
		user.setUserPk((Long)getColumnValue(rs, "USER_PK", Long.class));
		user.setUserId((String)getColumnValue(rs, "USER_ID", String.class));
		user.setUserName((String)getColumnValue(rs, "USER_NAME", String.class));	
		
		return entity;
		
	}
	
}
